package com.wz.wzliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.wz.wzliving.commodity.entity.AttrAttrgroupRelationEntity;
import com.wz.wzliving.commodity.entity.AttrEntity;
import com.wzcommon.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品属性表
 *
 * @author wangzeng
 * @email 3107187288@qq.com
 * @date 2025-03-31 21:10:49
 */
public interface AttrService extends IService<AttrEntity> {
    void saveAttrAndRelation(AttrEntity attr);
    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryBaseAttrPage
            (Map<String, Object> params, Long categoryId);
    PageUtils querySaleAttrPage
            (Map<String, Object> params, Long categoryId);
    List<AttrEntity> getRelationAttr(Long attrgroupId);
    void deleteRelation(AttrAttrgroupRelationEntity[]
                                attrAttrgroupRelationEntities);
    PageUtils getAllowRelationAttr(Map<String, Object> params, Long attrgroupId);
}

